/**
 *******************************************************************************
 * @FileName  : kv_adapt.c
 * @Author    : GaoQiu
 * @CreateDate: 2021-4-27
 * @Copyright : Copyright(C) GaoQiu
 *              All Rights Reserved.
 *******************************************************************************
 *
 * The information contained herein is confidential and proprietary property of
 * GaoQiu and is available under the terms of Commercial License Agreement
 * between GaoQiu and the licensee in separate contract or the terms described
 * here-in.
 *
 * This heading MUST NOT be removed from this file.
 *
 * Licensees are granted free, non-transferable use of the information in this
 * file under Mutual Non-Disclosure Agreement. NO WARRENTY of ANY KIND is provided.
 *
 *******************************************************************************
 */
#include "utils/lg_mem.h"

static bool_t is_mem_inited = false;

void *kv_malloc(uint32_t size)
{
	if(is_mem_inited == false){
		lg_mem_init();
		is_mem_inited = true;
	}

	void *p = lg_mem_new(size);
	return p;
}

int kv_free(void *p)
{
	return lg_mem_release(p);
}


void *kv_create_lock(void)
{
	return NULL;
}

void kv_free_lock(void *lock)
{

}

void kv_lock(void *lock)
{

}

void kv_unlock(void *lock)
{

}

